package com.wish.g04.renting.controller;

import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;

import com.wish.g04.base.entity.MBank;
import com.wish.g04.common.core.web.controller.BaseController;
import com.wish.g04.common.core.web.page.TableDataInfo;
import com.wish.g04.renting.service.ITMBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.wish.g04.common.log.annotation.Log;
import com.wish.g04.common.log.enums.BusinessType;
import com.wish.g04.common.security.annotation.PreAuthorize;

/**
 * 银行代码Controller
 * 
 * @author ruoyi
 * @date 2022-05-28
 */
@RestController
@RequestMapping("/bank")
public class TMBankController extends BaseController
{
    @Autowired
    private ITMBankService tMBankService;

    /**
     * 查询银行列表
     */
    @PreAuthorize(hasPermi = "system:bank:list")
    @GetMapping("/list")
    public TableDataInfo list()
    {
        startPage();
        List<MBank> list = tMBankService.selectTMBankList();
        return getDataTable(list);
    }
}
